package com.nlelpct.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 地址
     */
    private String address;

    /**
     * 生日
     */
    private LocalDate birthday;

    /**
     * 创建时间
     */
    private LocalDateTime cjsj;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 身份证
     */
    private String identity;

    /**
     * 上次登录时间
     */
    private LocalDateTime lastLogin;

    /**
     * 上次修改密码时间
     */
    private LocalDateTime lastResetPasswd;

    /**
     * 姓名
     */
    private String name;

    /**
     * 密码
     */
    private String password;

    /**
     * 手机号
     */
    private String phone;

    /**
     * qq号码
     */
    private String qq;

    /**
     * 0. 女  1.男  2.未知
     */
    private Integer sex;

    /**
     * 用户名
     */
    private String username;

    /**
     * 微信
     */
    private String wechat;

    /**
     * 修改时间
     */
    private LocalDateTime xgsj;

    /**
     * 状态 0. 禁用 1. 正常 2.逻辑删除
     */
    private Integer zt;

    /**
     * 国际区号
     */
    private String areaCode;


    public static final String ID = "id";

    public static final String ADDRESS = "address";

    public static final String BIRTHDAY = "birthday";

    public static final String CJSJ = "cjsj";

    public static final String EMAIL = "email";

    public static final String IDENTITY = "identity";

    public static final String LAST_LOGIN = "last_login";

    public static final String LAST_RESET_PASSWD = "last_reset_passwd";

    public static final String NAME = "name";

    public static final String PASSWORD = "password";

    public static final String PHONE = "phone";

    public static final String QQ = "qq";

    public static final String SEX = "sex";

    public static final String USERNAME = "username";

    public static final String WECHAT = "wechat";

    public static final String XGSJ = "xgsj";

    public static final String ZT = "zt";

    public static final String AREA_CODE = "area_code";


}
